﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Kkc.Model.Album>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Html.Encode(Model.Title) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1><%= Html.Encode(Model.Title) %></h1>

    <p>
        <%= Html.Encode(Model.Summary) %>
    </p>
    
    <% Html.PartialRequest(new { controller = "Photo", action = "List", albumId = Model.Id }); %>
</asp:Content>

<asp:Content ContentPlaceHolderID="LeftSideContent" runat="server">
    <ul>
        <li class="first"><%=Html.ActionLink("Tilbake til galleriet", "Index") %></li>
        <% if (Page.User.IsInRole("Contributor")) { %>
        <li><%=Html.ActionLink("Rediger", "Edit", new { id=Model.Id }) %></li>
        <% } %>
    </ul>
</asp:Content>

